<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@page import="com.pojo.ShopNews"%>
    <%@page import="com.Dao.ShopDao"%>
    <%
	ShopDao ShopDao = new ShopDao();//创建数据库处理对象
%>
<!DOCTYPE HTML>
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" href="../css/houtai.css">
  </head>  
  <body>	
<div>
<div class="header-warp">
    <div class="header">
        <div class="header-guanli">
            用户管理页面
        </div>
    </div>
    <div class="zuobian">
        <div class="zuobiandaohang">
           <h3 class="menu_head"  href="javascript:;" onclick="c(0);">用户信息</h3>
        </div>
        <div class="zuobiandaohang">
            <h3 class="menu_head" href="javascript:;" onclick="c(1);">禁用恢复账户</h3>
        </div>
        <div class="zuobiandaohang">
            <h3 class="menu_head" href="javascript:;" onclick="c(2);">重置账户密码</h3>
        </div>
        <div class="zuobiandaohang">
             <h3 class="menu_head" href="javascript:;" onclick="c(3);">版主管理</h3>
        </div>
        <div class="zuobiandaohang">
          <h3 class="menu_head">返回登陆</h3>
        </div>
    </div>
    <div class="dati" id="a0">
                <div class="list_title">
                	<div class="master_list">用户ID</div>
                    <div class="master_list">用户姓名</div>
                    <div class="master_list">电话号码</div>
                    <div class="master_list">电子邮箱</div>
                    <div class="master_list">出生年龄</div>
                    <div class="master_list">个人性别</div>
                    <div class="master_list">用户状态</div>
                </div>
                
                <%
						ShopNews[] shopArrx = ShopDao.finduser();
						for(int i=0;i<ShopDao.getShopCountX();i++){
					%>
                <div class="list_title">
                    <div class="master_list"><%=shopArrx[i].getUid() %></div>
                    <div class="master_list"><%=shopArrx[i].getUname() %></div>
                    <div class="master_list"><%=shopArrx[i].getUphone() %></div>
                    <div class="master_list"><%=shopArrx[i].getUemail()%></div>
                    <div class="master_list"><%=shopArrx[i].getUage() %></div>
                    <div class="master_list"><%=shopArrx[i].getUsex() %></div>
                    <div class="master_list"><%=shopArrx[i].getUjst() %></div>
                </div>
                <%} %>

			
    </div>
    <div class="dati" id="a1"style="display:none">

    		<p style="font-size:20px;color: red;">用户管理：</p>
  			<form action="add.jsp" method="post">
			<div class="tianjia">用户Id:&nbsp;&nbsp;<input name="Uid" type="text" size="15px"/></div>
			<br/>
			<div class="tianjia">禁用与恢复账户:&nbsp;&nbsp;
			<select name="Ujst"> 
				<option value="普通账户">普通账户</option> 
				<option value="封禁账户">封禁账户</option> 
			</select> </div>
			<br/>
			<div class="tianjia">更改:&nbsp;&nbsp;<input type="submit" value=" 修改 " />&nbsp;<label class="fail"></label></div>
			</form>
			</div>
    <div class="dati" id="a2" style="display:none">
    		<p style="font-size:20px;color: red;">重置密码：</p>
 			<form action="add-a.jsp" method="post">
			<div class="tianjia">手机号码:&nbsp;&nbsp;<input name="Uphone" type="text" size="15px"/></div>
			<br/>
			<div class="tianjia">输入新密码:&nbsp;&nbsp;<input name="Upsw" type="text" size="15px"/></div>
			<br/>
			<div class="tianjia">确认新密码:&nbsp;&nbsp;<input name="Urpsw" type="text" size="15px"/></div>
			<br/>

			<div class="tianjia">更改:&nbsp;&nbsp;<input type="submit" value=" 修改 " />&nbsp;<label class="fail"></label></div>
			</form>
    </div>
    <div class="dati" id="a3" style="display:none">
    		<p style="font-size:20px;color: red;">版主管理：</p>
 			<form action="add.jsp" method="post">
			<div class="tianjia">用户Id:&nbsp;&nbsp;<input name="Uid" type="text" size="15px"/></div>
			<br/>
			<div class="tianjia">禁用与恢复账户:&nbsp;&nbsp;
			<select name="Ujst"> 
				<option value="普通账户">普通账户</option> 
				<option value="体育版主">体育版主</option> 
				<option value="娱乐版主">娱乐版主</option>
				<option value="旅游版主">旅游版主</option>
				<option value="美食版主">美食版主</option>
				<option value="风景版主">风景版主</option>
				<option value="超级管理员">超级管理员</option>
			</select> </div>
			<br/>
			<div class="tianjia">更改:&nbsp;&nbsp;<input type="submit" value=" 修改 " />&nbsp;<label class="fail"></label></div>
			</form>
    </div>

</div>
    </div>

<script>
    function $(v){return document.getElementById(v);}
    var x=0;
    function c(y){
        $("a"+x).style.display = "none";
        $("a"+y).style.display = "";
        x=y
    }

</script>
  </body>
</html>